package com.hiwan.system.pojo;


import java.io.Serializable;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.hiwan.system.common.persistence.BasePojo;

/**
 * 
 * Datetime   ： 2016年1月6日 下午3:49:29<br>
 * Title      :  Log.java<br>
 * Description:   日志<br>
 * Company    :  hiwan<br>
 * @author cbj
 *
 */
public class Log extends BasePojo implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String id;
	private String type; 		 // 日志类型 
	private String title;		 // 日志标题
	private String createBy;     //创建人
	private String createDate;   //创建时间
	private String remoteAddr; 	 // 操作用户的IP地址
	private String requestUri; 	 // 操作的URI
	private String requestMethod;// 操作的方式
	private String userAgent;	 // 操作用户代理信息
	private String exception; 	 // 异常信息
	private String startDate;  
	private String  endDate;
	//  日志类型（1：接入日志；2：错误日志）
	public static final String TYPE_ACCESS = "1";
	public static final String TYPE_EXCEPTION = "2";
	
	public Log(){
		super();
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getRemoteAddr() {
		return remoteAddr;
	}

	public void setRemoteAddr(String remoteAddr) {
		this.remoteAddr = remoteAddr;
	}

	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

	public String getRequestUri() {
		return requestUri;
	}

	public void setRequestUri(String requestUri) {
		this.requestUri = requestUri;
	}

	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRequestMethod() {
		return requestMethod;
	}

	public void setRequestMethod(String requestMethod) {
		this.requestMethod = requestMethod;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}